package vodka.interpreter;

import java.lang.*;


/**
 *	Load a dynamically created class from a byte-buffer
 */

class DynClassLoader extends ClassLoader
{
	DynClassLoader()
	{
	}
	
	DynClassLoader(ClassLoader parent)
	{
		super(parent);
	}
	
	public Class dynDefineClass(byte[] buf)
	{
		ClassLoader parent = getParent();
		
		return this.defineClass(null, buf, 0, buf.length);
	}
}
